package cn.cnsy123.blog.application.http.base;

import java.util.Date;

/**
 * @author yangpengfei
 * @description 返回客户端消息-基础参数
 * @date 2019-10-14 09-48-26
 */
public class BaseResponse<T> {
    private String code;

    private String message;

    private Date requestTime;

    private Date responseTime;

    private T data;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Date getRequestTime() {
        return requestTime;
    }

    public void setRequestTime(Date requestTime) {
        this.requestTime = requestTime;
    }

    public Date getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(Date responseTime) {
        this.responseTime = responseTime;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public BaseResponse(String code, String message, Date requestTime, Date responseTime) {
        this.code = code;
        this.message = message;
        this.requestTime = requestTime;
        this.responseTime = responseTime;
    }

    public BaseResponse() {
    }



}
